package com.wsoft.dc.sample;

import com.wsoft.core.cmd.DcConfigService;
import com.wsoft.entity.BaseConfigVO;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * @Author z001
 * @Date 2024/12/19 09:29
 */
@Service(value = "newTodoService")
public class NewTodoServiceImplDc implements DcConfigService {
    @Override
    public Long count(Map<String, Object> paramMap) {
        return 10L;
    }

    @Override
    public List<? extends BaseConfigVO> list(Map<String, Object> paramMap) {
        NewVO nowVO1 = new NewVO("todo1","todo1",LocalDateTime.now());
        NewVO nowVO2 = new NewVO("todo2","todo2",LocalDateTime.now());
        NewVO nowVO3 = new NewVO("todo3","todo3",LocalDateTime.now());
        NewVO nowVO4 = new NewVO("todo4","todo4",LocalDateTime.now());
        NewVO nowVO5 = new NewVO("todo5","todo5",LocalDateTime.now());
        NewVO nowVO6 = new NewVO("todo6","todo6",LocalDateTime.now());
        NewVO nowVO7 = new NewVO("todo7","todo7",LocalDateTime.now());
        NewVO nowVO8 = new NewVO("todo8","todo8",LocalDateTime.now());
        NewVO nowVO9 = new NewVO("todo9","todo9",LocalDateTime.now());
        NewVO nowVO10 = new NewVO("todo10","todo10",LocalDateTime.now());
        return Arrays.asList(nowVO1,nowVO2,nowVO3,nowVO4,nowVO5,nowVO6,nowVO7,nowVO8,nowVO9,nowVO10);
    }
}
